'use strict';

const RouterService = require('../base');

class BannerService extends RouterService {
    static get modelName() {
        return 'Business.Config';
    }

    // 根据key查找
    async findByKey(key) {
        return await this.model.findOne({
            where: { key }
        });
    }
}

module.exports = BannerService;
